<?php
/**
 * Created by PhpStorm.
 * User: 王文凡<787802868@qq.com>
 * Date: 2016/9/29 0029
 * Time: 11:32
 */

namespace Common\Model;
use Think\Model;

class ClassGradeModel extends Model
{
    protected $_validate = array(
        array('grade_name','require', '班级名称必须填写'),
        array('principal','require', '请选择负责人'),
        array('number_people','require', '容纳人数必须填写'),
        array('number_people','/^\d{1,4}$/', '人数格式错误',0,'regex'),
    );

}